package com.njust.service;

import com.njust.domain.dto.UserLoginDTO;
import com.njust.domain.dto.UserSignInDTO;
import com.njust.domain.po.User;
import com.njust.domain.vo.UserLoginVO;
import com.njust.domain.vo.UserVO;

/**
 * @version 1.0
 * @Author Imak
 * @Date 2024/10/18 14:30
 * @注释
 */
public interface UserService {
    /**
     * 员工登录
     * @param userLoginDTO
     * @return
     */
    UserLoginVO login(UserLoginDTO userLoginDTO);

    /**
     * 员工注册
     * @param userSignInDTO
     * @return
     */
    User sign(UserSignInDTO userSignInDTO);

    /**(
     * 注销账号
     * @param uId
     */
    void deleteAcc(Integer uId);

    /**
     * 退出登录
     * @param uId
     */
    void logout(Integer uId);

    /**
     * 获取用户个人信息
     * @param uId
     * @return
     */
    UserVO userInfo(Integer uId);
}
